package se.webbzon.oschi01.item;

import java.util.Comparator;

public class ItemEntryComparator implements Comparator<ItemEntry> {

	@Override public int compare(ItemEntry lhs, ItemEntry rhs) {
		return lhs.getId() - rhs.getId();
	}
	
	public static final boolean isEqual(ItemEntry lhs, ItemEntry rhs) {
		return lhs.getType() == rhs.getType() && lhs.getMod().equals(rhs.getMod()) && lhs.getUnlocalisedName().equals(rhs.getUnlocalisedName()) && lhs.getClassName().equals(rhs.getClassName());
	}

}
